package com.dfbz.设计模式.decorate;

import org.junit.Test;

import java.io.BufferedInputStream;
import java.io.FileInputStream;

public class Demo01 {

    @Test
    public void test1() {

/*
        Student student = new Student();

        student.study();
*/

        // IO流里面大量使用到了装饰设计模式

        Student student = new Student();
//        student.lookBook();

        StudentCast studentCast = new StudentCast(student);
//        studentCast.study();
        studentCast.lookBook();

    }
}
